.class public Lcom/ninesky/widget/QuickActionItem;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:I

.field private b:I

.field private c:Ljava/lang/String;

.field private d:Landroid/view/View$OnClickListener;

.field private e:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public static a(Landroid/content/Context;IILandroid/view/View$OnClickListener;)Lcom/ninesky/widget/QuickActionItem;
    .locals 3

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03001a

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p0

    check-cast p0, Lcom/ninesky/widget/QuickActionItem;

    invoke-virtual {p0, p1}, Lcom/ninesky/widget/QuickActionItem;->a(I)V

    invoke-virtual {p0, p2}, Lcom/ninesky/widget/QuickActionItem;->b(I)V

    iput-object p3, p0, Lcom/ninesky/widget/QuickActionItem;->d:Landroid/view/View$OnClickListener;

    invoke-virtual {p0, p3}, Lcom/ninesky/widget/QuickActionItem;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p0
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget v0, p0, Lcom/ninesky/widget/QuickActionItem;->a:I

    return v0
.end method

.method public final a(I)V
    .locals 1

    iput p1, p0, Lcom/ninesky/widget/QuickActionItem;->a:I

    const v0, 0x7f0c0043

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/QuickActionItem;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/ImageView;

    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    return-void
.end method

.method public final a(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    iput-object p1, p0, Lcom/ninesky/widget/QuickActionItem;->e:Landroid/graphics/drawable/Drawable;

    const v0, 0x7f0c0043

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/QuickActionItem;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/ImageView;

    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final a(Landroid/view/View$OnClickListener;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/widget/QuickActionItem;->d:Landroid/view/View$OnClickListener;

    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .locals 1

    iput-object p1, p0, Lcom/ninesky/widget/QuickActionItem;->c:Ljava/lang/String;

    const v0, 0x7f0c0044

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/QuickActionItem;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public final b()I
    .locals 1

    iget v0, p0, Lcom/ninesky/widget/QuickActionItem;->b:I

    return v0
.end method

.method public final b(I)V
    .locals 1

    iput p1, p0, Lcom/ninesky/widget/QuickActionItem;->b:I

    const v0, 0x7f0c0044

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/QuickActionItem;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(I)V

    return-void
.end method

.method public final c()Landroid/view/View$OnClickListener;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/QuickActionItem;->d:Landroid/view/View$OnClickListener;

    return-object v0
.end method
